<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>作业29</title>
    <script>
        /*
        有这样一个代码
        switch(name) {
            case "jt":
            alert('金团网);
            break;
            case "ejt":
                    alert('金团相相贷');
            break;
            case "ejin":
                    alert("网上综合金融体验馆");
                    break;
            default:
                    alert("金团网络典当");
        }
        请用if来实现上面的效果   
        */

        var name = prompt("请输入一个名字：");

        if(name == "jt"){
            alert("金团网");
        }
        else if(name == "ejt"){
            alert("金团相相贷");
        }
        else if(name == "ejin"){
            alert("网上综合金融体验馆");
        }
        else{
            alert("金团网络典当");
        }


    </script>
</head>
<body>
    
</body>
</html>